package com.lfsenior.account;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * Created by dlupan on 2018/9/14
 */
public class AccountServiceHelper {
    private static ApplicationContext context=null;
    public static ApplicationContext instance(){
        if(null==context){
            context=new AnnotationConfigApplicationContext(AccountConfig.class);
        }
        return context;
    }
}
